// 列表分页
export const PAGESIZE = 12
// 表格高度
export const TABLELINEHEIGHT = 41
// 表格高度
export const TABLEHEIGHT = (PAGESIZE + 1) * 40 + 15
// 默认的行政区划编码
export const REGIONCODE = '341500000'
// 默认的部门编码
export const DEPARTMENTCODE = '8aa26bc2759333a40175a6f1b225004e'
// echart 默认颜色
export const EchartsColor = [
  '#3D84FF',
  '#6bd5ff',
  '#4edab6',
  '#c890fb',
  '#BC5BBE',
  '#E0B670',
  '#7681EB',
  '#6ECE65',
  '#6e7074',
  '#546570',
  '#c4ccd3'
]
// 任务类型
export const RenwuTYPE = [
  {
    text: '重点任务',
    value: '1'
  },
  {
    text: '专项任务',
    value: '2'
  }
]
// AQI等级
export const AQILeves = {
  L1: {
    name: '优',
    bgcolor: '#4edab6',
    color: '#2fc8a1',
    color2: '#defff1'
  },
  L2: {
    name: '良',
    bgcolor: '#f9db39',
    color: '#daa401',
    color2: '#fff9d6'
  },
  L3: {
    name: '轻度',
    bgcolor: '#f69205',
    color: '#f67905',
    color2: '#ffefd9'
  },
  L4: {
    name: '中度',
    bgcolor: '#e73c3c',
    color: '#f44b4b',
    color2: '#fff0f0'
  },
  L5: {
    name: '重度',
    bgcolor: '#e50072',
    color: '#fa007c',
    color2: '#ffe8f3'
  },
  L6: {
    name: '严重',
    bgcolor: '#b20838',
    color: '#b20838',
    color2: '#f5dbe3'
  }
}
// 模块配置
export const ModuleGroupCode = {
  'airFactor': '空气质量',
  'waterFactor': '水环境',
  'soilFactor': '土壤',
  'noiseFactor': '噪声',
  'wasteFactor': '固废危废',
  'pollutionFactor': '环境监察',
  'visitFactor': '信访',
  'preventionFactor': '污染防治攻坚战'
}
// 获取AQI LEVEL配置
export function GetAqiByLevel(level) {
  return AQILeves['L' + level]
}
// 文件上传路径
export const UPLOADPATH = `${process.env.VUE_APP_UPLOAD_SERVER}/file/upload?route=file`

